package com.dapeng.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.sql.DataSource;

/**
 * @author dapeng
 * @create 2020-10-03 9:51
 */
@RestController
public class helloController {
    @Autowired
    private DataSource dataSource;


    @GetMapping("hello")
    public String hello(){
        System.out.println("DataSource" +dataSource);
        return "hello spring boot";
    }
}
